import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SPetRentLog
    
    export  class SPetRentLog extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SPetRentLog();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeDate(this.borrowTime);
            arg1.writeString(this.petName);
            arg1.writeString(this.playerName);
            arg1.writeInt(this.unit);
            arg1.writeInt(this.price);
            arg1.writeInt(this.playerId);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.borrowTime = arg1.readDate();
            this.petName = arg1.readString();
            this.playerName = arg1.readString();
            this.unit = arg1.readInt();
            this.price = arg1.readInt();
            this.playerId = arg1.readInt();
            return;
        }

        public /* const */_type: int=12204;

        public /* var */borrowTime: Date;

        public /* var */petName: string;

        public /* var */playerName: string;

        public /* var */unit: int;

        public /* var */price: int;

        public /* var */playerId: int;

        public static /* var */_regist: SPetRentLog;
    }

            SPetRentLog._regist = new SPetRentLog(true);
        